package loja;

public class Produto {
	
	private String nomeProd;
	private Double precoProd;
	
	public Produto(String nomeProd,Double precoProd){
		this.setNomeProd(nomeProd);
		this.setPrecoProd(precoProd);
	}
	
	public Produto(){
		
	}
	
	public String toString(){
		
		return "\nNome do produto: " + getNomeProd() + "\nPreco do  produto: " +getPrecoProd() ;
	}

	public String getNomeProd() {
		return nomeProd;
	}

	public void setNomeProd(String nomeProd) {
		this.nomeProd = nomeProd;
	}
	
	public Double getPrecoProd() {
		return precoProd;
	}

	public void setPrecoProd(Double precoProd) {
		this.precoProd = precoProd;
	}
	
}
/**
 * Passing Arrays to Methods:
Just as you can pass primitive type values to methods, you can also pass arrays to methods. For example, the following method displays the elements in an int array:

public static void printArray(int[] array) {
  for (int i = 0; i < array.length; i++) {
    System.out.print(array[i] + " ");
  }
}
Returning an Array from a Method:
A method may also return an array. For example, the method shown below returns an array that is the reversal of another array:

public static int[] reverse(int[] list) {
  int[] result = new int[list.length];

  for (int i = 0, j = result.length - 1; i < list.length; i++, j--) {
    result[j] = list[i];
  }
  return result;
}
*/